package com.fch.sdlibrary.service.impl;

import com.fch.sdlibrary.entity.History;
import com.fch.sdlibrary.mapper.HistoryMapper;
import com.fch.sdlibrary.service.HistoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @program: sdlibrarySpring
 * @description: 历史记录服务实现类
 * @CreatedBy: fch
 * @create: 2022-05-24 23:45
 **/
@Service
public class HistoryServiceImpl implements HistoryService {
    @Resource
    private HistoryMapper historyMapper;

    @Override
    public List<History> queryHistory() {
        List<History> histories = new ArrayList<>();
        histories = historyMapper.queryHistory();
        return histories;
    }
}
